package com.hk.housekeeping.order.utils;

//分页工具类
public class PageUtils<T> {
    private int currentPage = 1;     //默认为第一页，注意：每一次前端的发送的请求，获取请求页码，设置当前页为请求页码
    private int pageSize = 3;        //默认显示3条
    private int totalCount;          //总条数
    private T data;                  //分页的内容

    public PageUtils() {
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}

